Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker_container: add platform parameter #426

Merged

Conversation

felixfontein
Copy link
Collaborator

@felixfontein felixfontein commented Jul 14, 2022

SUMMARY

Currently includes #422. Will rebase once that's merged.

Fixes #123.

One problem here is idempotency. For example, for the hello-world:latest image, starting a container with linux/amd64 or linux/386 only reports platform linux. One could work around this by looking at the Os / Arch / Var fields of the image, but these do not always coincide with the values that were used when pulling or creating the container. (I noticed that the variant for ARM can differ in my experiments.)

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

docker_container

@github-actions
Copy link

github-actions bot commented Jul 14, 2022

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@felixfontein felixfontein force-pushed the docker_container-platform branch from f39e2d0 to 23ba177 Compare July 15, 2022 05:26
@felixfontein felixfontein changed the title [WIP] docker_container: add platform parameter docker_container: add platform parameter Jul 15, 2022
@felixfontein
Copy link
Collaborator Author

ready_for_review

@felixfontein felixfontein merged commit e26890a into ansible-collections:main Jul 15, 2022
@felixfontein felixfontein deleted the docker_container-platform branch July 15, 2022 15:15
@felixfontein
Copy link
Collaborator Author

@briantist thanks for this one as well!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add 'platform' option in docker_container
2 participants